<%@page import="java.util.ArrayList" %>
<%@page import="Data.Category" %>
<div class="sidebar col-md-3">
    <article style="min-height: 400px" class="detailed-logo">
        <p style="background: #01b7f2; width: 100%; height: 50px; color: #fff; font-weight: bold; font-size: 20px; padding-top: 9px; text-align: center;" >CATEGORY</p>

        <%
            Category ct = new Category();
            ArrayList<Category> a = ct.CselectbyQuery("AND Status=1");

            if (a.size() > 0) {
                for (int i = 0; i < a.size(); i++) {
                    Category cate = a.get(i);
                    out.print("<h2><img src='images/triangle.png' style='margin:0 10px 0 15px;' alt='triangle'/><a href='index.jsp?page=listEvent&CateID=" + cate.getCategoryID() + "'>" + cate.getCategoryName() + "</a></h2>");
                   out.print(" <hr style='background: #01b7f2;border:0; height:1px' />");
                }
            }
        %>
       
    </article>
    <div class="travelo-box contact-box">
        <h4>Ads</h4>
        <p>We would be more than happy to help you. Our team advisor are 24/7 at your service to help you.</p>
        <address class="contact-details">
            <span class="contact-phone"><i class="soap-icon-phone"></i> 1-800-123-HELLO</span>
            <br>
            <a class="contact-email" href="car-detailed.html#">help@travelo.com</a>
        </address>
    </div>


</div>